package com.zzg.controller;

import java.io.IOException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.zzg.service.CustomerService;

@Controller
public class CustomerController {
	@Autowired
	private CustomerService customerService;

	@RequestMapping(value = "/test", method = RequestMethod.GET)
	@ResponseBody
	public void test() throws IOException {
		customerService.saveCustomers();
		customerService.fetchAllCustomers();
		customerService.fetchIndividualCustomers();
	}
}
